package com.mtons.mblog.base.model.page;

import java.io.Serializable;

/**
 * 分页查询通用类，需要分页的入参类继承此类
 * @author lijie
 * @since 20180115
 */
public class PageParam implements Serializable {


    private static final long serialVersionUID = 8176969542494733386L;
    /**
     * 当前页
     */
    private int pageNum = 1;

    /**
     * 每页记录数
     */
    private int pageSize = 10;

    public PageParam() {
    }

    public PageParam(int pageNum, int pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
